<?php
declare(strict_types=1);
namespace SixShop\Payment\Event;

use SixShop\Payment\Contracts\PaymentRefundRequest;
use SixShop\Payment\Model\ExtensionPaymentModel;
use SixShop\Payment\Model\ExtensionRefundModel;

readonly class RefundSuccessEvent
{
    public function __construct(private ExtensionRefundModel $refund, private ExtensionPaymentModel $payment, private PaymentRefundRequest $paymentRefundRequest)
    {
    }

    public function getRefund(): ExtensionRefundModel
    {
        return $this->refund;
    }

    public function getPayment(): ExtensionPaymentModel
    {
        return $this->payment;
    }
    public function getPaymentRefundRequest(): PaymentRefundRequest
    {
        return $this->paymentRefundRequest;
    }
}